home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / prefs / printergfx.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  3KB  |  111 lines

  1. #ifndef PREFS_PRINTERGFX_H
  2. #define PREFS_PRINTERGFX_H 1
  3. /*
  4. ** printergfx.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for printergfx.h
  17. */
  18. #ifndef PrinterGfxPrefsPtr
  19. #define PrinterGfxPrefsPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for printergfx.h
  23. */
  24.  
  25.  
  26. /*****************************************************************************/
  27.  
  28.  
  29. #ifndef EXEC_TYPES_H
  30. #include <exec/types.h>
  31. #endif
  32.  
  33. #ifndef LIBRARIES_IFFPARSE_H
  34. #include <libraries/iffparse.h>
  35. #endif
  36.  
  37.  
  38. /*****************************************************************************/
  39.  
  40.  
  41. #define ID_PGFX 1346848344 
  42.  
  43.  
  44. STRUCT PrinterGfxPrefs
  45.  
  46.     STRING pg_Reserved SIZE 16  /*  4*SIZEOF(LONGINT) */
  47.     SHORTINT pg_Aspect 
  48.     SHORTINT pg_Shade 
  49.     SHORTINT pg_Image 
  50.     SHORTINT  pg_Threshold 
  51.     BYTE  pg_ColorCorrect 
  52.     BYTE  pg_Dimensions 
  53.     BYTE  pg_Dithering 
  54.     SHORTINT pg_GraphicFlags 
  55.     BYTE  pg_PrintDensity       /* Print density 1 - 7 */
  56.     SHORTINT pg_PrintMaxWidth 
  57.     SHORTINT pg_PrintMaxHeight 
  58.     BYTE  pg_PrintXOffset 
  59.     BYTE  pg_PrintYOffset 
  60. END STRUCT 
  61.  
  62. /* constants for PrinterGfxPrefs.pg_Aspect */
  63. #define PA_HORIZONTAL 0
  64. #define PA_VERTICAL   1
  65.  
  66. /* constants for PrinterGfxPrefs.pg_Shade */
  67. #define PS_BW       0
  68. #define PS_GREYSCALE    1
  69. #define PS_COLOR    2
  70. #define PS_GREY_SCALE2  3
  71.  
  72. /* constants for PrinterGfxPrefs.pg_Image */
  73. #define PI_POSITIVE 0
  74. #define PI_NEGATIVE 1
  75.  
  76. /* flags for PrinterGfxPrefs.pg_ColorCorrect */
  77. #define PCCB_RED   1    /* color correct red shades   */
  78. #define PCCB_GREEN 2    /* color correct green shades */
  79. #define PCCB_BLUE  3    /* color correct blue shades  */
  80.  
  81. #define PCCF_RED   (1)
  82. #define PCCF_GREEN (2)
  83. #define PCCF_BLUE  (4)
  84.  
  85. /* constants for PrinterGfxPrefs.pg_Dimensions */
  86. #define PD_IGNORE   0  /* ignore max width/height settings */
  87. #define PD_BOUNDED  1  /* use max w/h as boundaries    */
  88. #define PD_ABSOLUTE 2  /* use max w/h as absolutes     */
  89. #define PD_PIXEL    3  /* use max w/h as prt pixels    */
  90. #define PD_MULTIPLY 4  /* use max w/h as multipliers       */
  91.  
  92. /* constants for PrinterGfxPrefs.pg_Dithering */
  93. #define PD_ORDERED  0  /* ordered dithering */
  94. #define PD_HALFTONE 1  /* halftone dithering    */
  95. #define PD_FLOYD    2  /* Floyd-Steinberg dithering */
  96.  
  97. /* flags for PrinterGfxPrefs.pg_GraphicsFlags */
  98. #define PGFB_CENTER_IMAGE   0   /* center image on paper */
  99. #define PGFB_INTEGER_SCALING    1   /* force integer scaling */
  100. #define PGFB_ANTI_ALIAS     2   /* anti-alias image  */
  101.  
  102. #define PGFF_CENTER_IMAGE   (1)
  103. #define PGFF_INTEGER_SCALING    (2)
  104. #define PGFF_ANTI_ALIAS     (4)
  105.  
  106.  
  107. /*****************************************************************************/
  108.  
  109.  
  110. #endif /* PREFS_PRINTERGFX_H */
  111.